<?
    class categoryFilterLimit extends CWidget {

		public $beforeText = 'На страницу: ';
		public $perpage;
		public $page;
		public $order;
		public $manufacturer;
		public $feature;
		public $id;

        public function run() {

			$perpagearray = array(5,10,20,30,100,500);
			echo $this->beforeText;
			foreach($perpagearray as $page){
				echo "&nbsp;";
				if($this->perpage == $page){
					echo $page;
				}else{
					?> <a href="<?=Yii::app()->createUrl("category/index", array(
						'id' => $this->id,
						'perpage' => $page,
						'order' => $this->order,
						'manufacturer' => $this->manufacturer,
						'feature' => $this->feature
					));?>"> <? echo $page; ?> </a><?
				}
				echo "&nbsp;";
			}

		}
    }
?>